package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BywUserBatchUnlockInfoMapper;
import com.ruoyi.system.domain.BywUserBatchUnlockInfo;
import com.ruoyi.system.service.IBywUserBatchUnlockInfoService;

/**
 * 用户批量解锁记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-24
 */
@Service
public class BywUserBatchUnlockInfoServiceImpl implements IBywUserBatchUnlockInfoService 
{
    @Autowired
    private BywUserBatchUnlockInfoMapper bywUserBatchUnlockInfoMapper;

    /**
     * 查询用户批量解锁记录
     * 
     * @param id 用户批量解锁记录主键
     * @return 用户批量解锁记录
     */
    @Override
    public BywUserBatchUnlockInfo selectBywUserBatchUnlockInfoById(Long id)
    {
        return bywUserBatchUnlockInfoMapper.selectBywUserBatchUnlockInfoById(id);
    }

    /**
     * 查询用户批量解锁记录列表
     * 
     * @param bywUserBatchUnlockInfo 用户批量解锁记录
     * @return 用户批量解锁记录
     */
    @Override
    public List<BywUserBatchUnlockInfo> selectBywUserBatchUnlockInfoList(BywUserBatchUnlockInfo bywUserBatchUnlockInfo)
    {
        return bywUserBatchUnlockInfoMapper.selectBywUserBatchUnlockInfoList(bywUserBatchUnlockInfo);
    }

    /**
     * 新增用户批量解锁记录
     * 
     * @param bywUserBatchUnlockInfo 用户批量解锁记录
     * @return 结果
     */
    @Override
    public int insertBywUserBatchUnlockInfo(BywUserBatchUnlockInfo bywUserBatchUnlockInfo)
    {
        bywUserBatchUnlockInfo.setCreateTime(DateUtils.getNowDate());
        return bywUserBatchUnlockInfoMapper.insertBywUserBatchUnlockInfo(bywUserBatchUnlockInfo);
    }

    /**
     * 修改用户批量解锁记录
     * 
     * @param bywUserBatchUnlockInfo 用户批量解锁记录
     * @return 结果
     */
    @Override
    public int updateBywUserBatchUnlockInfo(BywUserBatchUnlockInfo bywUserBatchUnlockInfo)
    {
        bywUserBatchUnlockInfo.setUpdateTime(DateUtils.getNowDate());
        return bywUserBatchUnlockInfoMapper.updateBywUserBatchUnlockInfo(bywUserBatchUnlockInfo);
    }

    /**
     * 批量删除用户批量解锁记录
     * 
     * @param ids 需要删除的用户批量解锁记录主键
     * @return 结果
     */
    @Override
    public int deleteBywUserBatchUnlockInfoByIds(Long[] ids)
    {
        return bywUserBatchUnlockInfoMapper.deleteBywUserBatchUnlockInfoByIds(ids);
    }

    /**
     * 删除用户批量解锁记录信息
     * 
     * @param id 用户批量解锁记录主键
     * @return 结果
     */
    @Override
    public int deleteBywUserBatchUnlockInfoById(Long id)
    {
        return bywUserBatchUnlockInfoMapper.deleteBywUserBatchUnlockInfoById(id);
    }
}
